def sum_100():#0-100求和
    i=0
    result=0
    while i <=100:
        result+=i
        i+=1
    print('%d'%result)#缩进，在前面打印最后一次result 在while内则每次打印result
# sum_100()
def sum_jishu():#0-100求奇数和
    i=0
    result=0
    while i <=100:
        if i%2==1:
            i+=1
            continue#跳过下面直接回到while
        result+=i
        i+=1
    print('%d'%result)
# sum_jishu()
def sum_jieshu():
    i=0
    result=0
    while i <=100:
        if result>2000:
            break
        result+=i
        i+=1
    print('%d,%d'%(result,i))
# sum_jieshu()
def chengfa_99():
    hang=1
    while hang<=9:
        lie=1
        while lie<=hang:
            print('%d * %d = %d'%(lie,hang,hang*lie),end='\t')
            lie+=1
        print()
        hang+=1

# chengfa_99()
mylist=[1,2,3]
for i in mylist:
    print(i,end='\t')
for i in range(1,10):#开始结束步长,左闭右开
    if i==10:
        print('find')
        break
else:
    print('not find')

